package com.dhcc.bpm.modules.alarm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.alarm.entity.AlarmNotice;
import com.dhcc.bpm.modules.alarm.vo.AlarmNoticeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 告警通知表 Mapper 接口
 *
 * @author ccab
 * @since 2020-07-06
 */
public interface AlarmNoticeMapper extends BaseMapper<AlarmNotice> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param alarmNotice
	 * @return
	 */
	List<AlarmNoticeVO> selectAlarmNoticePage(IPage page, AlarmNoticeVO alarmNotice);

	/**
	 * 告警数量
	 *
	 * @param alarmNotice
	 * @return
	 */
	Integer getAlarmNotice(@Param("alarmNotice")  AlarmNoticeVO alarmNotice);
}
